package jyan.sango.crazy.core.card;

public enum CardName {
	kill,slip,peach;
	public static final Integer getCardName(final CardName cname){
		if(kill.equals(cname)){
			return 0;
		}else if(slip.equals(cname)){
			return 1;
		}else if(peach.equals(cname)){
			return 2;
		}else{
			//Nothing todo~
		}
		return null;
	}
	public static final Integer getCardName(final String name){
		CardName cname = null;
		if("kill".equals(name)){
			cname = kill;
		}else if("slip".equals(name)){
			cname = slip;
		}else if("peach".equals(name)){
			cname = peach;
		}else{
			//Nothing todo~
		}
		return getCardName(cname);
	}
}
